package com.chixing.day04_oop.account;

public class Account {
    public int accNo;
    public String accName;
    public float accBalance;
    public long accTelno;

    public int getAccNo() {
        return accNo;
    }

    public void setAccNo(int accNo) {
        this.accNo = accNo;
    }

    public String getAccName() {
        return accName;
    }

    public void setAccName(String accName) {
        this.accName = accName;
    }

    public float getAccBalance() {
        return accBalance;
    }

    public void setAccBalance(float accBalance) {
        this.accBalance = accBalance;
    }

    public long getAccTelno() {
        return accTelno;
    }

    public void setAccTelno(long accTelno) {
        this.accTelno = accTelno;
    }

    @Override
    public String toString() {
        return "Account{" +
                "accNo=" + accNo +
                ", accName='" + accName + '\'' +
                ", accBalance=" + accBalance +
                ", accTelno=" + accTelno +
                '}';
    }

    public void depoist(float money){
        this.accBalance += money;
    }
    public void withdraw(float money){
        this.accBalance -= money;
    }
}

